package com.vcc.boss.core.config;

import com.vcc.core.util.Base64Util;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Setter
@Getter
@Component
@ConfigurationProperties("account")
public class AccountConfig {

    private Long jwtExpiresSecond;
    private String jwtSecretString;

    public String getJwtSecretString() {
        return Base64Util.encodeToString(jwtSecretString);
    }

    private String domain;
    private String active;
    private String ip;
}
